package org.openfans.domain;

import java.util.Date;

/**
 * 描述：用户的软件的使用情况<br>
 * 日期：2006-5-29<br>
 * 
 * @author 张俊<br>
 * @email:pesome@gmail.com<br>
 */
public class UseStatus {
	public static final int USED = 1;

	public static final int USING = 2;

	public static final int PREPARE = 3;

	public static final int NULL_STATE = 0;

	private int id;

	private int status;

	private Fans fans;

	private Tag tag;

	private Date submitDate;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getSubmitDate() {
		return submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public Fans getFans() {
		return fans;
	}

	public void setFans(Fans fans) {
		this.fans = fans;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Tag getTag() {
		return tag;
	}

	public void setTag(Tag tag) {
		this.tag = tag;
	}

	public String getStatusStr() {
		if (status == USED) {
			return "熟练掌握";
		} else if (status == USING) {
			return "正在使用";
		} else {
			return "׼准备使用";
		}

	}

}
